#!/usr/bin/python3
# coding=UTF-8

import sys
import rospy
from rmep_msgs.srv import *

def pwm_cilent():
    rospy.init_node('ep_pwm')
    rospy.wait_for_service('ep_pwm')
    try:
        add_pwm = rospy.ServiceProxy('ep_pwm', RobotPwm)
        response = add_pwm(0,0,0,0,0,0,0,0,0,0,0,0)
        return response.result
    except rospy.ServiceException:
        print ("Service call failed")
def arm():
    rospy.init_node('ep_arm')
    rospy.wait_for_service('ep_arm')
    try:
        arm_pwm = rospy.ServiceProxy('ep_arm', RobotArm)
        response = arm_pwm(0,-10)
        return response.result
    except rospy.ServiceException:
        print ("Service call failed")

if __name__ == "__main__":
    print (pwm serve successfully [result:%s]" %(pwm_cilent())
    # print ("pwm serve successfully [result:%s]" %(arm()))

